<#assign pageName="修改流程审批分组">
<@override name="head-styles">
</@override>
<@override name="page-content">
     <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}</legend>
    </fieldset>
    <form class="layui-form padding-10" lay-filter="formGroupAdd"> 
   		 <@ctrl.Hidden path="wfGroup.id"/>
         <@ctrl.Textbox path="wfGroup.name" labelText="分组名称" required="required" attributes="maxlength='50'"/>
         <@ctrl.LabelText path="wfGroup.code" labelText="分组编号"/>
         <@ctrl.SingleSelect path="wfGroup.status" labelText="启用状态" required="required" 
               options={"T":"启用","F":"禁用"} text=1 value=0>
         </@ctrl.SingleSelect>
         <@ctrl.Textarea path="wfGroup.content" labelText="分组描述" required="required" attributes="maxlength='200' style='resize:vertical'" />
         <@ctrl.FormAction backURL="${contextPath}/workflow/group/manage"/>
   </form>
</@override>
<@override name="page-scripts">
<script src="${contextPath}/assets/plugins/tinymce/tinymce.config.js"></script>
<script src="${contextPath}/assets/plugins/tinymce/tinymce.min.js"></script>
<script src="${contextPath}/assets/plugins/aliyun/aliyun-upload-sdk-1.5.0.min.js"></script>
<script src="${contextPath}/assets/plugins/aliyun/aliyun-config.js"></script>
 <script>
    $(function(){
        layui.use(['form','layer','jquery'], function(){
            var form = layui.form;
            var layer=layui.layer;
            var laydate = layui.laydate;
            $=layui.jquery;
            //监听提交
            form.on('submit(submit)', function(data){
                submitData(data.field, '${contextPath}/workflow/group/edit', function(){location.href="${contextPath}/workflow/group/manage";});
                return false;
            });
        });
        function clearNoNumAndLetter(obj){    
            obj.value = obj.value.replace(/[\W]/g,'');  //清除“数字及字母”以外的字符         
       	}
    })
    
    function clearNoNumAndLetter(obj){    
            obj.value = obj.value.replace(/[\W]/g,'');  //清除“数字及字母”以外的字符         
       	}
</script>
</@override>
<@extends name="/layout/basepage.html"/> 

